const { query } = require("./mysql");
const { YD_datetimeToString, YD_whereSql } = require("lib/utils/common");

/** @name 获取特定类型的字段列表 **/
exports.yd_singleList = (options) => {
	const sql = `select *,
						${YD_datetimeToString("createTime")},
						${YD_datetimeToString("updateTime")}
						from ch_dictionary
						${YD_whereSql([{ field: "type", type: "全等", value: options.type }])}
            `;
	return query(sql);
};
